import time

import pyvisa as visa
import velox

address = "192.168.1.100"
with velox.MessageServerInterface(ipaddr=address, targetSocket=1412) as msgServer:
    print("MoveOpticalProbeHeight_H1",msgServer.sendSciCommand("MoveOpticalProbeHeight", "H1"))
    print("MoveOpticalProbeHeight_H2",msgServer.sendSciCommand("MoveOpticalProbeHeight", "H2"))

    print("H1_1",msgServer.sendSciCommand("GetOpticalProbeStatus", "H1"))
    print("H2_1",msgServer.sendSciCommand("GetOpticalProbeStatus", "H2"))


    print("MoveOpticalSeparationHeight_H1",msgServer.sendSciCommand("MoveOpticalSeparationHeight", "H1"))
    print("MoveOpticalSeparationHeight_H2",msgServer.sendSciCommand("MoveOpticalSeparationHeight", "H2"))

    print("H1_2",msgServer.sendSciCommand("GetOpticalProbeStatus", "H1"))
    print("H2_2",msgServer.sendSciCommand("GetOpticalProbeStatus", "H2"))
